package util;

/**
 * run HttpDownload as a thread
 * @author ladjzero
 *
 */
public class HttpDownloadThread extends Thread{
	private HttpDownload hd;
	
	public HttpDownloadThread(String desUrl, String localDir){
		hd = new HttpDownload(desUrl, localDir);
	}
	
	public void setLengthLimit(int length){
		hd.setLengthLimit(length);
	}
	public void setTimeout(int timeout){
		hd.setTimeout(timeout);
	}
	
	public void run(){
		hd.go();
	}
	
	
}
